package cn.group.service.impl;

import cn.group.dao.RoleDao;
import cn.group.domain.Role;
import cn.group.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {
    private RoleDao roleDao;

    @Autowired
    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    @Override
    public Role queryRoleById(Integer id) {
        Role role = roleDao.queryRoleById(id);
        return role;
    }
}
